var page = require('webpage').create();
page.settings.userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36';
page.open('https://www.jd.com/', function() {
    setTimeout(function() {
        page.render('jd.png');
        /*
        page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() {
            var ua = page.evaluate(function() {
                return $("li.more2_item");
            });
            console.log('ok')
            console.log(ua);
        });
        */
        var ua = page.evaluate(function() {
            return document.getElementsByClassName('more2_item')[0];
        });
        console.log(ua);
        phantom.exit();
    }, 20000);
});